using System;
using System.Collections.Generic;
using System.Text;

namespace Hoshimi
{
	public class PierreShooterGroup_ReleaseState : State
	{
		#region Singleton

		// Fields
		protected static PierreShooterGroup_ReleaseState instance;

		// Constructor
		protected PierreShooterGroup_ReleaseState() : base() { }

		// Methods
		public static PierreShooterGroup_ReleaseState Instance()
		{
			// Uses "Lazy initialization"
			if( instance == null ) 
				instance = new PierreShooterGroup_ReleaseState();

			return instance;
		}

		#endregion

		public override bool Play( Unit unit )
		{
			PierreShooterGroup myGroup = (PierreShooterGroup) unit;

			myGroup.TryGiveAllBotsToFatherBeforeRelease();

			return true;
		}
	}
}